<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title></title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
 
</head>
<body>
	<t:formvalid formid="formobj" dialog="true" layout="table" 
	enctype="multipart/form-data"  tiptype="3" action="teachTaskSetController.do?saveAllItem">
		 
		<input type="hidden" name="teachTaskId" value="${teachTaskId}"/>
		
 		<table cellpadding="0" cellspacing="1" class="formtable"> 
 		 
 			<tr>
				<td align="right">
						<label class="Validform_label">
							教学项目:
						</label>
				</td>
				<td class="value"> 
                	     <input id="itemId" name="itemIdParam" type="hidden"  value=''>               
					     <input id="itemName"  style="width:400px;" type="text" style="width: 150px" class="inputxt"  datatype="*"
					      readonly="readonly"  value="">
					     <t:choose hiddenName="itemId" hiddenid="id" url="dictTeachItemController.do?goMultiSelect" name="groupList"
                          icon="icon-search" title="选择" textname="itemName" isclear="false" isInit="true" fun="afterSelect" ></t:choose>
							
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">教学项目</label>
						
				</td>
					
			</tr>
	  
			<tr>
				<td align="right"><label class="Validform_label">
						课时: </label>
				</td>
				<td class="value">
					<input id="powerValue" name="powerValue" type="text" style="width:150px;"  
						class="inputxt"   maxlength="30" value="${item.powerValue}" >   
					<span class="Validform_checktip"></span>
				    <label class="Validform_label" 	style="display: none;">课时</label>
				</td>
			</tr>
		</table>
 
	</t:formvalid>
	
	<script>
		$(document).ready(function(){
			moneyValidate('powerValue');
		});
		
		function afterSelect(iframe){
			if(iframe.getSelectIds().length > 0){
				teachItem = iframe.getSelectIds();
			}else{
				teachItem = null;
			}  
		}
	
		var teachItem = null;
		
		function getTeachTaskItem(){
			var val = $('#powerValue').val();
			if(val.length == 0) val="0";
			var item = {
					powerValue:val,
					teachItem:teachItem
			};
			return item;
		}
	</script>
</body>
    
 